<!--
    THIS EXAMPLE WAS DOWNLOADED FROM https://echarts.apache.org/examples/zh/editor.html?c=iron-globe&gl=1
-->
<!DOCTYPE html>
<html style="height: 100%">
<head>
    <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
<div id="container"
     style="width: 600px; height: 600px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%)"></div>

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
<!-- Uncomment this line if you want to dataTool extension
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/extension/dataTool.min.js"></script>
-->
<!-- Uncomment this line if you want to use gl extension-->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl@2/dist/echarts-gl.min.js"></script>

<!-- Uncomment this line if you want to echarts-stat extension
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat@latest/dist/ecStat.min.js"></script>
-->
<!-- Uncomment this line if you want to use map
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/map/js/china.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/map/js/world.js"></script>
-->
<!-- Uncomment these two lines if you want to use bmap extension
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=<Your Key Here>"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/extension/bmap.min.js"></script>
-->

<script type="text/javascript">
    let ROOT_PATH = 'https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/examples';
    let dom = document.getElementById("container");
    let myChart = echarts.init(dom);
    let app = {};

    let option;


    option = {
        // backgroundColor: '#f6f9fd',
        globe: {
            // baseTexture: ROOT_PATH + "/data-gl/asset/world.topo.bathy.200401.jpg",
            baseTexture: './map-1.jpg',
            // heightTexture: ROOT_PATH + "/data-gl/asset/bathymetry_bw_composite_4k.jpg",
            displacementScale: 0.2,
            // shading: 'realistic',
            // environment: ROOT_PATH + '/data-gl/asset/starfield.jpg',
            // realisticMaterial: {
            //     roughness: ROOT_PATH + '/asset/get/s/data-1497599804873-H1SHkG-mZ.jpg',
            //     metalness: ROOT_PATH + '/asset/get/s/data-1497599800643-BJbHyGWQW.jpg',
            //     textureTiling: [8, 4]
            // },
            postEffect: {
                enable: true
            },
            viewControl: {
                autoRotate: false
            },
            // light: {
            //     main: {
            //         intensity: 2,
            //         shadow: true
            //     },
            //     ambientCubemap: {
            //         texture: ROOT_PATH + '/data-gl/asset/pisa.hdr',
            //         exposure: 2,
            //         diffuseIntensity: 2,
            //         specularIntensity: 2
            //     }
            // }
        }
    };

    if (option && typeof option === 'object') {
        myChart.setOption(option);
    }

</script>
</body>
</html>
